<?php

namespace IDock\Insurance\LIHI\Request;

use IDock\Insurance\LIHI\Request\AllLIHIRequest;
use IDock\Insurance\LIHI\Response\ProposalRecallResponse;
use IDock\Insurance\LIHI\Response\ProposalStatusResponse;
use IDock\Visitor\ProposalRecallVisitor;
use IDock\Visitor\ProposalStatusVisitor;

class ProposalRecallRequest extends AllLIHIRequest
{
    public $route = 'insure/recall';

    protected $response = ProposalRecallResponse::class;

    protected $urlTip = '撤单接口';

    /*** @var  ProposalRecallVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $this->flowId = $this->visitor->argc['flowId'] ?? '';
        return [
            'documentNo' => $this->visitor->biInquiryNo ?: $this->visitor->ciInquiryNo,
        ];
    }
}
